public class MaxHeap {
    int[] maxHeap;
    int heapSize;
    int realSize = 0;
    public MaxHeap(int heapSize){
        this.heapSize = heapSize;
        maxHeap = new int[heapSize+1];
        maxHeap[0] = 0;
    }

    public void add(int element){
        realSize++;
        if(realSize>heapSize){
            System.out.println("Add too many elements!");
            realSize--;
            return ;
        }
        maxHeap[realSize] = element;
        int index = realSize;
        int parent = in
    }
}
